<?php

namespace App\Http\Forms;

use Kris\LaravelFormBuilder\Form;

class ShopRecommendForm extends Form
{
    public function buildForm()
    {
        $this
            ->add('link_id', 'select', [
                'attr' => ['class' => "form-control select2", 'id' => 'link_id'],
                'label' => "推荐",
                'rules' => 'required|string',
            ])
            ->add('submit', 'submit', [
                'attr' => ['class' => "form-control btn btn-success"],
                'label' => '保存',
            ]);
    }
}
